package guitk;

import java.util.ArrayList;
import java.util.List;

import javax.swing.UIManager;

public class UILookAndFeel {

	public static final String[] getLookndFeelList() {
		List<String> list = new ArrayList<String>();
		try {
			for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
				if (!info.getName().contains("Metal") && !info.getName().contains("Motif")) list.add(info.getClassName());
			}
		} catch (Exception e) {}
		return list.toArray(new String[0]);
	}

	public static final String[] getLookndFeelNameList() {
		List<String> list = new ArrayList<String>();
		try {
			for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels())
				if (!info.getName().contains("Metal") && !info.getName().contains("Motif")) list.add(info.getName());
		} catch (Exception e) {}
		return list.toArray(new String[0]);
	}

}
